package com.binhai.conifg;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;


@Component
@Data
public class Config {
    @Value("${spring.application.name}")
    public String name;
    @Value("${server.servlet.context-path}")
    public String contextPath;
    @Value("${server.port}")
    public String port;
    @Value("${spring.datasource.url}")
    public String url;
    @Value("${spring.datasource.username}")
    public String username;
    @Value("${spring.datasource.password}")
    public String password;
    @Value("${spring.datasource.driver-class-type}")
    public String driverClassType;
    @Value("${spring.datasource.type}")
    public String type;


}
